<?php 
  /**
   * @author claudiugh
   */
define('PT_UNIDIR', 1);
define('PT_BIDIR', 2);

class PT_Arc 
{
  var $from, $to; 
  var $w, $dir;
  
  /**
   * Constructor 
   * @param $from string
   * @param $to string 
   * @param $w float weight
   */
  function PT_Arc($from, $to, $w, $dir = PT_UNIDIR)
  {
    $this->from = $from;
    $this->to = $to;
    $this->w = $w;
    $this->dir = $dir;
  }
}

?>